<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:68:"E:\WWW\newadmin.cc\public/../application/admin\view\config\form.html";i:1679559678;s:58:"E:\WWW\newadmin.cc\application\admin\view\common\meta.html";i:1670904727;}*/ ?>
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>系统</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/admin/layuiadmin/style/admin.css" media="all">
  <script src="/static/echarts/echarts.js"></script>
  <script src="/static/admin/js/jquery-1.8.3.min.js"></script>
  <script src="/static/mods/notify_stand.js"></script>
</head>
<script>
  function clickimg(obj,img_tis){
    var img=$('#'+img_tis).val();
    console.log(img)
    var imgs=img.split(',');
    var arr=new Array();
    for(var i=0;i<imgs.length;i++){
      if(imgs[i]){
        if(i!=$(obj).index()){
        arr.push(imgs[i]);
      }
      }
    }
    $(obj).parent().remove();
    console.log(arr);
    $('#'+img_tis).val(arr.join(','));
    notify.success("操作成功", 'topRight');
}
function previewImg(obj) {
    var img = new Image(); 
    img.src = obj.src;
    //var height = img.height + 50; // 原图片大小
    //var width = img.width; //原图片大小
    var imgHtml = "<img src='" + obj.src + "' width='500px' height='500px'/>"; 
    //弹出层
    layer.open({ 
      type: 1, 
      shade: 0.8,
      offset: 'auto',
      area: [501 + 'px',551+'px'], // area: [width + 'px',height+'px'] //原图显示
      shadeClose:true,
      scrollbar: false,
      title: "图片预览", //不显示标题 
      content: imgHtml, //捕获的元素，注意：最好该指定的元素要存放在body最外层，否则可能被其它的相对元素所影响 
      cancel: function () { 
        //layer.msg('捕获就是从页面已经存在的元素上，包裹layer的结构', { time: 5000, icon: 6 }); 
      } 
    }); 
  }
</script>
<style>
  .previewImg{
    width: 100px;
    cursor:pointer;
  }
  .layui-btn_text{
    color: #009688;
    cursor:pointer;
  }
  .layui-btn_text-danger{
    color: #FF5722;
  }
  .layui-btn_text-danger:hover {
    color: #ff3c00;
}
.imgs_posi{
    position: relative;
    width: 200px;
    float: left;
  }

  .imgs_posi img{
    width: 100%;
  }
  .img_ab{
    position: absolute;
    right: 10px;
    top:5px;
    background-color: aliceblue;
    color: #333;
    font-size: 16px;
    height: 20px;
    line-height: 20px;
    width: 20px;
    text-align: center;
    border-radius: 20px;
    cursor: pointer;
  }
  .layui-elem-quote{
    overflow: hidden;
  }
</style>
<link rel="stylesheet" href="/static/component/pear/css/pear.css" />
<script src="/static/component/layui/layui.js"></script>
<script src="/static/component/pear/pear.js"></script>
<body class="pear-container">
<div class="layui-row layui-col-space15">
    <div class="layui-col-md12">
        <div class="layui-card">
            <form class="layui-form edit-form" method="post" action="">
            <div class="layui-tab layui-tab-brief" lay-filter="TabBrief">
                <ul class="layui-tab-title">
                    <li class="layui-this">系统参数</li>
                    <li>接口设置</li>
                    <li>关于我们</li>
                </ul>
                <div class="layui-tab-content">
                    <div class="layui-tab-item layui-show">
                            
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    网站名称
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input" name="webname" value="<?php echo isset($data['webname'])?$data['webname']:''; ?>" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">
                                    网站标题
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input" name="title" value="<?php echo isset($data['title'])?$data['title']:''; ?>" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item" style="display: none;">
                                <label class="layui-form-label">
                                    网站关键词
                                </label>
                                <div class="layui-input-block">
                                    <input autocomplete="off" class="layui-input"  name="key" value="<?php echo isset($data['key'])?$data['key']:''; ?>" type="text"/>
                                </div>
                            </div>
                            <div class="layui-form-item"  style="display: none;">
                                <label class="layui-form-label">
                                    网站描述
                                </label>
                                <div class="layui-input-block">
                                    <textarea name="desc" class="layui-textarea"><?php echo isset($data['desc'])?$data['desc']:''; ?></textarea>
                                </div>
                            </div>
                    </div>
                    <div class="layui-tab-item" style="display: none;">
                            <div class="layui-form-item">
                            <label class="layui-form-label">
                                Appid
                            </label>
                            <div class="layui-input-block">
                                <input autocomplete="off" class="layui-input" name="appid" value="<?php echo isset($data['appid'])?$data['appid']:''; ?>" type="text"/>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <label class="layui-form-label">
                                小程序秘钥
                            </label>
                            <div class="layui-input-block">
                                <input autocomplete="off" class="layui-input"  name="appsecret" value="<?php echo isset($data['appsecret'])?$data['appsecret']:''; ?>" type="text"/>
                            </div>
                        </div>
                    </div>
                    <div class="layui-tab-item" style="display: none;">
                            <div class="layui-form-item">
                            <label class="layui-form-label">
                                关于我们
                            </label>
                            <div class="layui-input-block">
                               <textarea name="about_us" id="about_us"  placeholder="请输入关于我们"   class="layui-textarea" style="height: 600px;width:100%;"><?php echo !empty($data['about_us'])?$data['about_us']:''; ?></textarea>
                            </div>
                        </div>
                    </div>
                </div>  
                <div class="layui-input-block" style="min-height: 80px;">
                    <button type="submit" class="pear-btn pear-btn-primary">保存</button>
                    <button type="reset" class="pear-btn">重置</button>
                </div>
        </form>    
        </div>
    </div>
</div>
<script>
    layui.use(['form', 'jquery', 'uploads'], function() {
        let form = layui.form;
        let $ = layui.jquery;


        // form.on('radio(type)', function(data){
        //     if(data.value==1){
        //         $("#oss").hide();
        //         $("#qiniu").hide();
        //     }
        //     if(data.value==2){
        //         $("#oss").show();
        //         $("#qiniu").hide();
        //     }
        //     if(data.value==3){
        //         $("#qiniu").show();
        //         $("#oss").hide();
        //     }
        // });  
    })
    </script>
<script type="text/javascript" charset="utf-8" src="/static/admin/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/admin/ueditor/ueditor.all.js"></script>
<script type="text/javascript" charset="utf-8" src="/static/admin/ueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript">

    var ue = UE.getEditor('about_us',{ zIndex: 10});
</script>
</body>
</html>
